package com.kly.user.db.dao;

import com.fqgj.common.base.BaseMapper;
import com.kly.user.db.entity.UserChatterMappingEntity;

import java.util.List;

/**
 * User: linqu
 * Date: 2023-06-21
 * Time: 10:44:30.531
 */

public interface UserChatterMappingDao extends BaseMapper<UserChatterMappingEntity> {

    List<UserChatterMappingEntity> queryByChatterUserCode(String chatterUserCode);

    List<UserChatterMappingEntity> queryByModelUserCode(String modelCode);

    List<UserChatterMappingEntity> queryByChatterUserCodes(List<String> chatterCodes);

    List<UserChatterMappingEntity> queryByModelUserCodes(List<String> userCodes);

    List<UserChatterMappingEntity> queryByModelUserCode(String fromUserCode, String toUserCode);

    void deleteByModelUserCode(String modelUserCode);

    void deleteByChatUserCode(String chatterUserCode);

    List<UserChatterMappingEntity> queryAllChatters();

    List<String> selectAll(String chatterUserCode);

    List<UserChatterMappingEntity> queryByChatterAccount(String chatterAccount);

    List<UserChatterMappingEntity> selectAllChatters();
}